package com.tzy.newbank.Pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import io.swagger.annotations.Api;
import io.swagger.annotations.ApiModelProperty;
import io.swagger.annotations.ApiOperation;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.persistence.Entity;

/**
 * <p>
 * 
 * </p>
 *
 * @author tzy
 * @since 2024-07-15
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("bankuser")
@Api(tags = "用户管理相关接口" )
public class Bankuser implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("id")
    @TableId(value = "id", type = IdType.AUTO)
    private Integer id;

    @ApiModelProperty("名字")
    private String name;

    @ApiModelProperty("密码")
    private String password;

    @ApiModelProperty("存款")
    private Double balance;

    @ApiModelProperty("状态")
    private Integer state;

    public Bankuser(String name){
        this.name=name;
    }
    public Bankuser(String name,String password){
        this.name=name;
        this.password=password;
    }

    public Bankuser(String name,String password,Double balance){
        this.name=name;
        this.password=password;
        this.balance=balance;
    }

}
